void func(unsigned int un_a,unsigned int ui_b){
    unsigned int udiff;
    if(ui_a<ui_b){
        /* Handle error */
    }else{
        udiff=ui_a-ui_b;
    }
    /* ... */
}